<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:include="css :: css">
</head>
<link href="/js/jquery.icheck/skins/square/blue.css" rel="stylesheet">
<link href="/css/chosen.css" rel="stylesheet">
<style>
    .block-flat .form-group {
        margin: 0 !important;
        padding: 0 !important;
    }
</style>

<body style="opacity: 1">
<div style="padding-top: 0">
    <div class="container-fluid">
        <div class="cl-mcont">
            <div class="row">
                <div class="col-md-12" style="padding:0">
                    <div class="block-flat">
                        <form class="form-inline group-border-dashed" id="buyCode">
                            <input type="hidden" id="productTypes" name="productTypes">
                            <input type="hidden" id="statusArray" name="statusArray">
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" id="name" name="name"
                                           placeholder="会员名称/编号"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" id="orderId" name="orderId"
                                           placeholder="订单号"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <select class="form-control" id="area" name="area">
                                        <option value="">销卡地区</option>
                                        <option value="0">全国</option>
                                        <option value="1">省卡</option>
                                    </select>
                                </div>
                            </div>
                            &nbsp;
                            <div class="form-group">
                                <div class="input-group">
                                    <select class="form-control chosen-select" id="state" name="state"
                                            multiple="multiple">
                                        <option value="" selected>全部状态</option>
                                        <option value="3">可售</option>
                                        <option value="0">在售</option>
                                        <option value="1">已售</option>
                                        <option value="2">停售</option>
                                        <option value="4">未预判面值</option>
                                        <option value="5">预判面值不符</option>
                                        <option value="7">等待慢速试充</option>
                                        <option value="9">待结算</option>
                                        <option value="10">纠纷中</option>
                                        <option value="99">补结算</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <select class="form-control chosen-select" id="operator" name="operator"
                                            multiple="multiple">
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <select class="form-control" id="faceValue" name="faceValue">
                                        <option value="">面值</option>
                                        <option value="1">1</option>
                                        <option value="2">2</option>
                                        <option value="5">5</option>
                                        <option value="10">10</option>
                                        <option value="20">20</option>
                                        <option value="30">30</option>
                                        <option value="50">50</option>
                                        <option value="100">100</option>
                                        <option value="200">200</option>
                                        <option value="300">300</option>
                                        <option value="500">500</option>
                                        <option value="1000">1000</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" id="batch" name="batch"
                                           th:placeholder="批次号"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" id="count" placeholder="折扣"
                                           style="width: 80px" name="count"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <span style="margin-top:40px;">~</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" id="count1" placeholder="折扣"
                                           style="width: 80px" name="count">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="time" id="buyStartTime">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <span style="margin-top:40px;">~</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="time" id="buyEndTime">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <select class="form-control" id="include" name="include">
                                        <option value="0">包含</option>
                                        <option value="1">剔除</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-primary" type="button" id="search"><i
                                        class="fa fa-search"></i>查询
                                </button>
                                <button class="btn btn-danger" type="button" onclick="batchFailFun()"><i
                                        class="fa fa-times"></i>批次失败
                                </button>
                                <button class="btn btn-danger" type="button"
                                        onclick="commonHiddenColumn('dataTable', 3)"></i>隐
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="block-flat">
                        <div class="content">
                            <div class="table-responsive" style="margin-bottom: 20px;">
                                <table class="table hover " id="dataTable">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <!-- 置失败 -->
    <div class="modal fade" id="failModal" tabindex="-1" role="dialog" aria-labelledby="failModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="failModalLabel">批次失败</h4>
                </div>
                <div class="modal-body">

                    <form class="form-horizontal" role="form" id="failModalForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label"><span
                                    class="text-danger">*</span>卡状态</label>
                            <div class="col-sm-8">
                                <label class="icheck" style="margin:6px 10px 0 0;">
                                    <input type="radio" value="4" name="status" checked> 未预判面值
                                </label>
                                <label class="icheck" style="margin:6px 10px 0 0;">
                                    <input type="radio" value="7" name="status"> 等待慢速试充
                                </label>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" id="failBtn">确定</button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel">
        <div class="modal-dialog" role="document" style="width:1100px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="detailModalLabel">提示</h4>
                </div>
                <div class="modal-body">
                    <div class="table-responsive">
                        <table class="table hover" id="dataTable1">
                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="hideModal" tabindex="-1" role="dialog" aria-labelledby="hideLabel">
        <div class="modal-dialog" role="document" style="width:1100px;">
            <div class="modal-content" style="width: 440px;margin: auto;">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="hideLabel">请选择隐藏列</h4>
                </div>
                <div class="modal-body">
                    <div id="chooseHide">

                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="js :: js"></div>
<script type="text/javascript" th:attr="src=@{/js/jquery.form.js}"></script>
<script type="text/javascript" th:attr="src=@{/js/jquery.parser.js}"></script>
<script type="text/javascript" src="js/jquery.icheck/icheck.min.js"></script>
<script type="text/javascript" src="/js/pageJs/order/order.js?deVersion=20181711225"></script>
<script type="text/javascript" src="/js/chosen.jquery.js?deVersion=20181711227"></script>
<script>
    $(".chosen-select").chosen({
        allow_single_deselect: true  //是否允许取消选择
        , disable_search: false,   //设置下拉多选框可见
        placeholder_text_multiple: "",
        width: '150px',
    });


</script>
</body>
</html>
